

#pragma once

class NetPacket
{
public:
	NetPacket(){}
	~NetPacket(){}

	struct PACKET_HEAD
	{
		int _type;
		int _size;
	};

	struct PACKET_BODY
	{
		BYTE*	_pBody;
	};
	
	static size_t GetHeaderSize() { return sizeof(PACKET_HEAD); }
	int GetBodySize() { return m_header._size; }
	
	PACKET_HEAD* GetHeader() { return &m_header; }
	PACKET_BODY* GetBody() {return &m_body; }
	
private:
	PACKET_HEAD	m_header;
	PACKET_BODY m_body;	
};

